[android] Screen Orientation Landscape back to Portrait not working
Posted
by marc
on Stack Overflow
See other posts from Stack Overflow
or by marc
Published on 2010-03-20T03:30:17Z
Indexed on
2010/03/20
3:31 UTC
Read the original article
Hit count: 673
android-emulator
|android-sdk
Hello,
I've racked my brain for hours over this issue. I have created a main.xml and designed one for the res/layout-land (landscape) format and another one for portrait in res/layout.
When I rotate the emulator (ctrl-F11), my app rotates properly to landscape using the correct main.xml, but a subsequent rotation back to portrait just keeps the landscape mail.xml.
This was done in a 2.0 AVD..
Out of despiration I downloaded the new Sample Code for Multiple Resolutions and had to create a new 2.1 AVD, to my surprise rotation with this app works correctly as expected. So I then decided to try my app on the 2.1 AVD and it works perfectly.
So, is this a Bug in a 2.0 AVD or is there something special I need to be doing for < 2.1 SDK versions?
This is driving me crazy because no where did anyone mention this issue.
Thanks in advance
© Stack Overflow or respective owner